package com.zb.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2023/8/8 0008
 **/
@Data
@ApiModel
public class UserLevelVo {
    @ApiModelProperty(value = "级别ID，新增不必传，修改时必传")
    private Long id;

    @NotBlank(message = "级别名称不能为空")
    @Length(max = 20, message = "级别名称限制20个字符以内")
    @ApiModelProperty(value = "级别名称", required = true)
    private String name;

    @NotNull(message = "级别状态不能为空")
    @ApiModelProperty(value = "级别状态：false-启用，true-禁用", required = true, example = "false")
    private Boolean status;

}
